<?php

use Illuminate\Database\Seeder;
use App\Models\Cate;
class CateSeeder extends Seeder
{
   //添加数据
    public function run()
    {
        Cate::create([
            'cname'=>'购房须知',
            'pid'=>0
        ]);
        Cate::create([
            'cname'=>'房产政策',
            'pid'=>1
        ]);
        Cate::create([
            'cname'=>'购房建议',
            'pid'=>1
        ]);
        Cate::create([
            'cname'=>'购房资质',
            'pid'=>1
        ]);
        Cate::create([
            'cname'=>'房屋贷款',
            'pid'=>1
        ]);
        Cate::create([
            'cname'=>'保障住房',
            'pid'=>1
        ]);
    }
}
